/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.vo.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.util.StringUtils;

/**
 * @author : WangZhiPan
 * @date : 2021/11/18 10:00
 */
@Data
@ApiModel(value = "GetOrgDetailReqVo")
public class GetOrgDetailReqVo {

    @ApiModelProperty("组织id")
    private Long orgId;

    @ApiModelProperty("组织code")
    private String orgCode;

    @ApiModelProperty(value="全量/有效数据标识",notes = "空字符串或Null获取全量数据，N-只获取有效数据")
    private String isDeleted;

    /**
     * 判空
     *
     * @return
     */
    public boolean empty() {
        return orgId == null & StringUtils.isEmpty(orgCode);
    }
}
